﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GQ.Utils;
using Chili.Opf3.Query;

namespace GQ.BLL.QuanLyKho
{
    public partial class NhanVien
    {
        public static IList<NhanVien> LoadByPhongBan(Guid id)
        {
            SqlQuery query = new SqlQuery("execute p_GetNhanVien {0}", id);
            return DbContext.ObjectContext.GetObjectSet<NhanVien>(query);
        }
    }
}
